package com.foreveross.fetl.core.domain.freight.hbase;


import javax.persistence.ManyToOne;

import com.foreveross.fetl.common.domain.BaseHBaseEntity;
import com.foreveross.fetl.common.jpa.annontation.HBaseColumn;


/**
 * 中转航班实体
 * @author tanzhixiong
 *
 */
@javax.persistence.Table(name="CRAWL_PLANE_FREIGHT")
public class TransitchangeEntity extends BaseHBaseEntity{

	private boolean flag;
	
	public boolean isFlag() {
		return flag;
	}

	public void setFlag(boolean flag) {
		this.flag = flag;
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 9069797263229076362L;

	/**
	 * 所属航班
	 */
	@ManyToOne
	private PlaneInfoEntity planeInfoEntity;
	
	/**
	 * 运营商简称英文，如：MU
	 */
	@HBaseColumn(qualifier="transitCarrierKey",family="planeinfo")
	private String carrierKey;

	/**
	 * 运营商简称中文，如：南航
	 */
	@HBaseColumn(qualifier="transitCarrierName",family="planeinfo")
	private String carrierName;

	/**
	 * 运营商全名，如：中国海南航空公司
	 */
	@HBaseColumn(qualifier="transitCarrierFullName",family="planeinfo")
	private String carrierFullName;
	/**
	 *出发城市 
	 */
	@HBaseColumn(qualifier="transitFromCity",family="planeinfo")
	private String fromCity ;
	

	/**
	 *到达城市  
	 */
	@HBaseColumn(qualifier="transitToCity",family="planeinfo")
	private String toCity;
	

	/**
	 *出发城市编码
	 */
	@HBaseColumn(qualifier="transitFromCityCode",family="planeinfo")
	private String fromCityCode ;
	


	/**
	 *到达城市 编码
	 */
	@HBaseColumn(qualifier="transitToCityCode",family="planeinfo")
	private String toCityCode;
	
	/**
	 *
	 */
	@HBaseColumn(qualifier="transitFromAir",family="planeinfo")
	private String fromAir;
	
	
	@HBaseColumn(qualifier="transitToAir",family="planeinfo")
	private String toAir;
	
	
	@HBaseColumn(qualifier="transitStartTime",family="planeinfo")
	private String startTime;
	
	
	@HBaseColumn(qualifier="transitEndTime",family="planeinfo")
	private String endTime;
	
	@HBaseColumn(qualifier="transitHightPrice",family="planeinfo", format="#,###")
	private Double hightPrice;
	
	@HBaseColumn(qualifier="transitLowerPrice",family="planeinfo", format="#,###")
	private Double lowerPrice;
	
	
	@HBaseColumn(qualifier="transitFlightTime",family="planeinfo")
	private String flightTime;
	
	@HBaseColumn(qualifier="transitFlightTyte",family="planeinfo")
	private String flightTyte;
	
	@HBaseColumn(qualifier="transitFlightNo",family="planeinfo")
	private String flightNo;
	
	public String getFlightNo() {
		return flightNo;
	}

	public void setFlightNo(String flightNo) {
		this.flightNo = flightNo;
	}

	public String getFlightTyte() {
		return flightTyte;
	}

	public void setFlightTyte(String flightTyte) {
		this.flightTyte = flightTyte;
	}

	public PlaneInfoEntity getPlaneInfoEntity() {
		return planeInfoEntity;
	}

	public void setPlaneInfoEntity(PlaneInfoEntity planeInfoEntity) {
		this.planeInfoEntity = planeInfoEntity;
	}
	
	public String getFromCityCode() {
		return fromCityCode;
	}
	
	public void setFromCityCode(String fromCityCode) {
		this.fromCityCode = fromCityCode;
	}
	
	public String getToCityCode() {
		return toCityCode;
	}
	
	public void setToCityCode(String toCityCode) {
		this.toCityCode = toCityCode;
	}
	@Override
	public String generateRowKey() {
		// TODO Auto-generated method stub
		return planeInfoEntity.generateRowKey();
	}

	public String getFromCity() {
		return fromCity;
	}
	
	public void setFromCity(String fromCity) {
		this.fromCity = fromCity;
	}
	
	public String getToCity() {
		return toCity;
	}
	
	public void setToCity(String toCity) {
		this.toCity = toCity;
	}
	
	public String getFromAir() {
		return fromAir;
	}
	
	public void setFromAir(String fromAir) {
		this.fromAir = fromAir;
	}
	
	public String getToAir() {
		return toAir;
	}
	
	public void setToAir(String toAir) {
		this.toAir = toAir;
	}
	
	public String getStartTime() {
		return startTime;
	}
	
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	
	public String getEndTime() {
		return endTime;
	}
	
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	
	public Double getHightPrice() {
		return hightPrice;
	}
	
	public void setHightPrice(Double hightPrice) {
		this.hightPrice = hightPrice;
	}
	
	
	
	public Double getLowerPrice() {
		return lowerPrice;
	}

	public void setLowerPrice(Double lowerPrice) {
		this.lowerPrice = lowerPrice;
	}

	public String getFlightTime() {
		return flightTime;
	}
	
	public void setFlightTime(String flightTime) {
		this.flightTime = flightTime;
	}

	public String getCarrierKey() {
		return carrierKey;
	}

	public void setCarrierKey(String carrierKey) {
		this.carrierKey = carrierKey;
	}

	public String getCarrierName() {
		return carrierName;
	}

	public void setCarrierName(String carrierName) {
		this.carrierName = carrierName;
	}

	public String getCarrierFullName() {
		return carrierFullName;
	}

	public void setCarrierFullName(String carrierFullName) {
		this.carrierFullName = carrierFullName;
	}
	@Override
	public String toString() {
		StringBuffer s = new StringBuffer();
		s.append("flightNo:").append(this.flightNo).append("   ")
		.append("fromAir:").append(this.fromAir).append("   ")
		.append("toAir:").append(this.toAir).append("   ")
		.append("startTime:").append(this.startTime).append("   ")
		.append("endTime:").append(this.endTime).append("   ");
		return s.toString();
	}
}
